home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / compiler / Location.sig < prev    next >
Encoding:
Text File  |  1997-08-18  |  678 b   |  21 lines  |  [TEXT/R*ch]

  1. datatype Location =
  2.     Loc of int     (* Position of the first character *)
  3.          * int     (* Position of the next character following the last one *)
  4. ;
  5.  
  6. val getCurrentLocation : unit -> Location
  7. and mkLoc : 'a -> Location * 'a
  8. and xLR : Location * 'a -> Location
  9. and xL : Location * 'a -> int
  10. and xR : Location * 'a -> int
  11. and xxLR : Location * 'a -> Location * 'b -> Location
  12. and xxRL : Location * 'a -> Location * 'b -> Location
  13. and nilLocation : Location
  14. and errLocation : Location -> unit
  15. and errInputName : unit -> unit
  16. and input_name : string ref
  17. and input_stream : BasicIO.instream ref
  18. and input_lexbuf : Lexing.lexbuf ref
  19. and errorMsg : Location -> string -> 'a
  20. ;
  21.